import http from '../Utils/request'
//根据用户id传输添加的商品
export const addshop = function (shop) {
  return http.post('/car/addcar', { shop })
}
//根据用户id渲染购物车
export const showcar = function (id) {
  return http.post('/car/getcar', { id })
}

//删除购物车
export const delecar = function (carId) {
  return http.post('/car/deleteCar', { carId })
}

//根据用户id修改商品数量
export const updatecar = (data) => {
  return http.post('/car/updateNum', data)
}
